package com.hr.classes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <pre>
 * 描述：TODO
 * </pre>
 *
 * @类名：com.hr.classes.entity.TbClasses
 * @创建日期: 2024/5/6 17:06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_classes")
@ApiModel(value = "TbClasses对象", description="")
public class TbClasses extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班次id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "班次名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "班次类型 1固定班次 2弹性班次")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "班次说明")
    @TableField("comment")
    private String comment;

    @ApiModelProperty(value = "上午上班时间")
    @TableField("morning_w_up")
    private Date morningWUp;

    @ApiModelProperty(value = "上午下班时间")
    @TableField("morning_w_down")
    private Date morningWDown;

    @ApiModelProperty(value = "下午上班时间")
    @TableField("afternoon_w_up")
    private Date afternoonWUp;

    @ApiModelProperty(value = "下午下班时间")
    @TableField("afternoon_w_down")
    private Date afternoonWDown;

    @ApiModelProperty(value = "弹性上班时长")
    @TableField("flex_time")
    private BigDecimal flexTime;

    @ApiModelProperty(value = "工作时长（小时）")
    @TableField("work_time")
    private BigDecimal workTime;

}
